import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/element.js'

Vue.config.productionTip = false
Vue.prototype.$target = process.env.VUE_APP_ASSETS_URL

Vue.prototype.$globalData = {
    $categoryArr : []
}

import Global from "./Global"
Vue.use(Global);

//注册全局组件
import GoodsList from "./components/GoodsList";
Vue.component("GoodsList", GoodsList)

//注册全局login组件
import Login from "./components/Login";
Vue.component("Login", Login)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
